package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import com.alibaba.fastjson.annotation.JSONField;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 
 *
 * @author code-generate
 * @date 2021-09-26
 */
@Data
@DbTable(tableName = "t_iot_device_water_quality_log")
public class IotDeviceWaterQualityLog extends BaseEntity {
        /**
     * 
     */
    @DbTableField(columnName = "c_device_code", dbType = DbTypeEnum.VARCHAR)
    public String deviceCode ;

    /**
     * 数据时间
     */
    @DbTableField(columnName = "c_date", dbType = DbTypeEnum.TIMESTAMP)
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    public LocalDateTime date ;

    /**
     * 水温(℃)
     */
    @DbTableField(columnName = "c_w01010rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal w01010rtd ;

    /**
     * 水温传感器状态(N:正常 D:异常)
     */
    @DbTableField(columnName = "c_w01010flag", dbType = DbTypeEnum.VARCHAR)
    public String w01010flag ;

    /**
     * PH(无量纲)
     */
    @DbTableField(columnName = "c_w01001rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal w01001rtd ;

    /**
     * PH传感器状态(N:正常 D:异常)
     */
    @DbTableField(columnName = "c_w01001flag", dbType = DbTypeEnum.VARCHAR)
    public String w01001flag ;

    /**
     * 电导率(uS/cm)
     */
    @DbTableField(columnName = "c_w01014rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal w01014rtd ;

    /**
     * 电导率传感器状态(N:正常 D:异常)
     */
    @DbTableField(columnName = "c_w01014flag", dbType = DbTypeEnum.VARCHAR)
    public String w01014flag ;

    /**
     * 溶解氧(mg/L)
     */
    @DbTableField(columnName = "c_w01009rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal w01009rtd ;

    /**
     * 溶解氧传感器状态(N:正常 D:异常)
     */
    @DbTableField(columnName = "c_w01009flag", dbType = DbTypeEnum.VARCHAR)
    public String w01009flag ;

    /**
     * 浊度(NTU)
     */
    @DbTableField(columnName = "c_w01003rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal w01003rtd ;

    /**
     * 浊度传感器状态(N:正常 D:异常)
     */
    @DbTableField(columnName = "c_w01003flag", dbType = DbTypeEnum.VARCHAR)
    public String w01003flag ;

    /**
     * 氨氮(mg/L)
     */
    @DbTableField(columnName = "c_w21003rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal w21003rtd ;

    /**
     * 氨氮传感器状态(N:正常 D:异常)
     */
    @DbTableField(columnName = "c_w21003flag", dbType = DbTypeEnum.VARCHAR)
    public String w21003flag ;

    /**
     * 水位(cm)
     */
    @DbTableField(columnName = "c_w01099rtd", dbType = DbTypeEnum.DECIMAL)
    public BigDecimal w01099rtd ;

    /**
     * 水位传感器状态(N:正常 D:异常)
     */
    @DbTableField(columnName = "c_w01099flag", dbType = DbTypeEnum.VARCHAR)
    public String w01099flag ;


}
